package easy;

import java.util.Arrays;

public class Solution_1619 {
    public double trimMean(int[] arr) {
        Arrays.sort(arr);
        int length = arr.length / 20;
        int sum = 0;
        for (int i = length; i < arr.length-length; i++) {
            sum += arr[i];
        }
        return (0.0 + sum) / (arr.length - length - length);
    }

    public static void main(String[] args) {
        Solution_1619 model = new Solution_1619();
    }
}
